package com.naiterui.ehp.bs.esign.api.wukong.config;

import com.naiterui.ehp.bp.utils.lang.ConfigUtil;

/**
 * @Description e签宝配置类
 * @Author gongbaoqiang
 * @Date 2019/12/20 4:39 PM
 */
public class ESignProperties {

    /**
     * sdk接口地址
     */
    private static final String SDK_BASE_URL = ConfigUtil.getString("esign.wukong.sdk.baseUrl");

    /**
     * openapi接口地址
     */
    private static final String OPENAPI_BASE_URL = ConfigUtil.getString("esign.wukong.sdk.openapiUrl");

    /**
     * 项目ID，也叫appId或者projectId
     */
    public static final String PROJECT_ID = ConfigUtil.getString("esign.wukong.sdk.projectId");

    /**
     * 密钥
     */
    public static final String PROJECT_SECRET = ConfigUtil.getString("esign.wukong.sdk.projectSecret");

    /**
     * 开放平台地址
     */
    public static final String ITSM_API_URL = SDK_BASE_URL + "/tgmonitor/rest/app!getAPIInfo2";

    /**
     * 获取accessToken地址
     */
    public static final String ACCESS_TOKEN_API = OPENAPI_BASE_URL + "/v1/oauth2/access_token";

    /**
     * 实名认证——获取验证码地址
     */
    public static final String REALNAME_CODE_API = OPENAPI_BASE_URL + "/v2/identity/auth/api/individual/telecom3Factors";

    /**
     * 实名认证——回填验证码地址
     */
    public static final String REALNAME_CHECK_API = OPENAPI_BASE_URL + "/v2/identity/auth/pub/individual/%s/telecom3Factors";

    /**
     * 人脸识别——获取意愿连接地址
     */
    public static final String FACE_API = OPENAPI_BASE_URL + "/v1/sign/willingness/createSignAuth";

    /**
     * 人脸识别——成功后重定向地址（客户端）
     */
    public static final String FACE_REDIRECT_URL = "/#/authSuccessed";
    /**
     * 意愿认证——成功后重定向地址（CMS端）
     */
    public static final String FACE_REDIRECT_CMS_URL = "/recommend/success";
    /**
     * 意愿认证——成功后重定向地址（doctor PC端）
     */
    public static final String FACE_REDIRECT_PC_URL = "/doctor/success";

    /**
     * 人脸识别——成功后回调服务端地址
     */
    public static final String FACE_NOTICE_DEVELOP_URL = "";


}

